package com.itwn.comic;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableTransactionManagement
@MapperScan(value = "com.itwn.comic.mapper")
@EnableCaching
@EnableSwagger2
@EnableScheduling
public class ComicApplication {

    public static void main(String[] args) {

        try {
            SpringApplication.run(ComicApplication.class, args);
        }catch (Exception exception){
            exception.printStackTrace();
        }
    }

}
